#include <stdio.h>
#include "seqlist.h"
    
int main(int argc,const char * argv[])
{
    SeqList_t *SeqListHead;
    SeqListHead = Create_SeqList();//创建一个顺序表

    for(int i = 0; i < 15;i++)
    {
        SeqListInsertData(SeqListHead,i*10);
    }

    SeqListShow(SeqListHead);

    datatype Temp;
    Temp = SeqListDeleteData(SeqListHead);
    printf("删除的数据为:%d\n",Temp); 
    Temp = SeqListDeleteData(SeqListHead);
    printf("删除的数据为:%d\n",Temp);
    Temp = SeqListDeleteData(SeqListHead);
    printf("删除的数据为:%d\n",Temp);

    SeqListShow(SeqListHead);

    SeqListInsertData(SeqListHead,999);
    SeqListShow(SeqListHead);

    SeqListInsertByPos(SeqListHead,88,2);
    SeqListShow(SeqListHead);

    SeqListInsertByPos(SeqListHead,123,14);
    SeqListShow(SeqListHead);

    SeqListdeleteByPos(SeqListHead,0);
    SeqListShow(SeqListHead);

    return 0;
}